package net.zjitc.utils;

import java.util.List;

/**
 * Created by hasee on 2017/10/27.
 */
public class PageBean {
    int pageNum;
    int totalPageNum;
    List list;
    int listLimit = 20;
    int count;//数据从条数
    String condition;

    public int getPageNum() {
        return pageNum;
    }

    public void setPageNum(int pageNum) {
        this.pageNum = pageNum;
    }

    public int getTotalPageNum() {
        int x = count/listLimit;
        return totalPageNum=count%listLimit==0?x:x+1;
    }

    public void setTotalPageNum(int totalPageNum) {
        this.totalPageNum = totalPageNum;
    }

    public List getList() {
        return list;
    }

    public void setList(List list) {
        this.list = list;
    }

    public int getListLimit() {
        return listLimit;
    }

    public void setListLimit(int listLimit) {
        this.listLimit = listLimit;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public String getCondition() {
        return condition;
    }

    public void setCondition(String condition) {
        this.condition = condition;
    }
}
